<template>
  <div>
    <!-- 有了 下面的推荐 -->
    <div class="box1" v-for="(v,i) in jianjie" :key="i" @click="fun(i)">
      <div>
        <img :src="v.imgurl" alt="" />
        <p class="p1">
          <span>{{v.people}}</span>
          <span>{{v.gangwei1}}</span>
        </p>
        <p class="p2">
          <van-icon name="plus" />
          <span>关注</span>
        </p>
      </div>
      <h2>{{v.txt.txt1}}</h2>
      <p class="q1">{{v.txt.txt2}}</p>
      <p class="q2">{{v.txt.txt3}}</p>
      <div class="icon">
        <van-icon name="good-job" />
        <van-icon name="comment" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      arrid:0
    }
  },
  computed:{
    jianjie(){
      return this.$store.state.tui
    }
  },
   methods:{
    // fun(index){
    //   this.arrid = this.$store.state.tui[index].id
    //   this.$router.push({ path: '/detail',query:{ id: this.arrid, i: index }})
    // }
  }
};
</script>

<style scoped>
.box1 {
  background: #fff;
  margin: 0.06rem 0;
}
.box1 > div {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 0.60rem;
  margin: 0 0.10rem;
}
.box1 > div > img {
  width: 0.30rem;
  height: 0.30rem;
  border-radius: 50%;
}
.box1 > div > .p1 {
  display: flex;
  flex-direction: column;
}
.box1 > div > .p1 span:nth-child(1) {
  width: 1.80rem;
  font-size: 0.15rem;
  font-weight: bold;
}
.box1 > div > .p1 span:nth-child(2) {
  font-size: 0.12rem;
  color: #666;
}
.box1 > div > .p2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.70rem;
  line-height: 0.30rem;
  background: #39c0ba;
  font-size: 0.14rem;
  border-radius: 0.30rem;
  margin-left: 0.10rem;
}
.box1 > h2 {
  font-size: 0.16rem;
  font-weight: bold;
  margin: 0.06rem 0.20rem;
}
.box1 > .q1 {
  /* font-size: 0.20rem; */
  margin: 0.15rem 0.20rem;
}
.box1 > .q2 {
  /* font-size: 0.20rem; */
  margin: 0.15rem 0.20rem;
}
.box1 > .icon {
  display: flex;
  justify-content: space-around;
  height: 0.30rem;
  color: #ccc;
}
</style>